<!doctype html>
<html>
<head>
<template source='TPL:common.head' load='true' />
<link href="{@theme:css}/forum.css?v={@G:version}" rel="stylesheet" />
<!--# if ($operateThread) { #-->
<link href="{@theme:css}/management.css?v={@G:version}" rel="stylesheet" />
<!--#}#-->
</head>
<body>
<pw-start/>
<div class="wrap">
<template source='TPL:common.header' load='true' />
	<div class="main_wrap">
		<pw-tpl id="main_segment"/>
		<div class="bread_crumb">
			{@$headguide|html}
		</div>
		<div class="main cc">
			<div class="main_body">
				<div class="main_content">
					<pw-tpl id="first_segment"/>
					<template source='widget_forum' load='true' />
					<pw-tpl id="cate_digest_middle"/>
					<div class="box_wrap thread_page">
						<nav>
						<div class="content_nav">
							<div class="content_filter"><a href="{@url:bbs/cate/digest?fid=$fid&orderby=postdate}" class="{@Pw::isCurrent($orderby == 'postdate')}">Bài mới nhất</a><span>|</span><a href="{@url:bbs/cate/digest?fid=$fid&orderby=lastpost}" class="{@Pw::isCurrent($orderby == 'lastpost')}">Trả lời cuối</a></div>
							<ul class="cc">
								<li><a href="{@url:bbs/cate/run?fid=$fid}">全部</a></li>
								<li class="current"><a href="{@url:bbs/cate/digest?fid=$fid}">Chọn lọc</a></li>
								<li><a href="#">会员</a></li>
							</ul>
						</div>
						</nav>
						<div class="thread_posts_list J_check_wrap">
							<table width="100%" id="J_posts_list" summary="帖子列表">
								<!--# foreach ($threadList as $key => $value) { #-->
								<tr>
									<td class="author"><a class="J_user_card_show" data-uid="{$value['created_userid']}" href="{@url:space/index/run?uid=$value['created_userid']}"><img class="J_avatar" src="{@Pw::getAvatar($value['created_userid'], 'small')}" data-type="small" width="45" height="45" alt="{$value['created_username']}的头像" /></a></td>
									<td class="subject">
										<p class="title">
											<!--# if ($operateThread) { #-->
											<input class="J_check" name="" type="checkbox" value="{$value['tid']}" />
											<!--# } #-->
											<span class="posts_icon"><i class="icon_{$value['icon']}" title="{$icon[$value['icon']]}"></i></span>
											<a href="{@url:bbs/read/run?tid=$value['tid']&fid=$value['fid']}" class="st" style="{$value['highlight_style']}">{@Pw::substrs($value['subject'],$numofthreadtitle)}</a><!--# if ($value['ifupload']) { #--><span class="posts_icon"><i class="icon_{$uploadIcon[$value['ifupload']]}" title="{$icon[$uploadIcon[$value['ifupload']]]}"></i></span><!--# } #-->
										</p>
										<p class="info">
											Người tạo:<a class="J_user_card_show" data-uid="{$value['created_userid']}" href="{@url:space/index/run?uid=$value['created_userid']}">{$value['created_username']}</a><span><!--# echo Pw::time2str($value['created_time'], 'd-m-Y');#--></span>
											Trả lời cuối:<a href="{@url:space/index/run?uid=$value['lastpost_userid']}">{$value['lastpost_username']}</a><span><a href="{@url:bbs/read/run?tid=$value['tid']&fid=$value['fid']&page=e}" rel="nofollow"><!--# echo Pw::time2str($value['lastpost_time'], 'd-m H:i');#--></a></span>
										</p>
									</td>
									<td class="num">
										<span><em>{$value['replies']}</em>Trả lời</span>
										<span><em>{$value['hits']}</em>Lượt xem</span>
									</td>
								</tr>
								<!--# } #-->
							</table>
						</div>
						<!--# if ($operateThread) { #-->
						<div class="management mb10">
							<label class="mr10"><input class="J_check_all" type="checkbox">Chọn tất</label>
							<!--# if ($operateThread['topped']) { #--><a href="{@url:bbs/manage/topped}" class="btn J_dialog_post">置顶</a><!--# } #-->
							<!--# if ($operateThread['digest']) { #--><a href="{@url:bbs/manage/digest}" class="btn J_dialog_post">Chọn lọc</a><!--# } #-->
							<!--# if ($operateThread['highlight']) { #--><a href="{@url:bbs/manage/highlight}" class="btn J_dialog_post">加亮</a><!--# } #-->
							<!--# if ($operateThread['up']) { #--><a href="{@url:bbs/manage/up}" class="btn J_dialog_post">提前</a><!--# } #-->
							<!--# if ($operateThread['type']) { #--><a href="{@url:bbs/manage/type}" class="btn J_dialog_post">分类</a><!--# } #-->
							<!--# if ($operateThread['move']) { #--><a href="{@url:bbs/manage/move}" class="btn J_dialog_post">移动</a><!--# } #-->
							<!--# if ($operateThread['copy']) { #--><a href="{@url:bbs/manage/copy}" class="btn J_dialog_post">复制</a><!--# } #-->
							<!--# if ($operateThread['unite']) { #--><a href="{@url:bbs/manage/unite}" class="btn J_dialog_post">合并</a><!--# } #-->
							<!--# if ($operateThread['lock']) { #--><a href="{@url:bbs/manage/lock}" class="btn J_dialog_post">锁定</a><!--# } #-->
							<!--# if ($operateThread['down']) { #--><a href="{@url:bbs/manage/down}" class="btn J_dialog_post">压帖</a><!--# } #-->
							<!--# if ($operateThread['delete']) { #--><a href="{@url:bbs/manage/delete}" class="btn J_dialog_post">Xóa</a><!--# } #-->
						</div>
						<!--# } #-->
					</div>
					<page tpl="TPL:common.page" page="$page" per="$perpage" count="$count" total="$totalpage" url="bbs/cate/digest" args="$urlargs" />
				</div>
				<pw-tpl id="cate_digest_bottom"/>
			</div>
			<div class="main_sidebar">
				<template source='TPL:common.sidebar_2' load='true' />
			</div>
			<section class="face_list" style="display:none;">
				<h2 class="hd"><a href="#" class="fr fn">查看更多&gt;&gt;</a>当前在线</h2>
				<article class="ct">
					<ul class="cc">
						<!--#$online = Wekit::load('SRV:online.srv.PwOnlineCountService');#-->
						<!--#$list = $online->getLastVisitor($pwforum->fid);#-->
						<!--#foreach ($list as $value) :#-->
						<li><a href="#"><img src="{@G:url.images}/face/face_small.jpg" width="48" height="48" alt="{$value['username']}"><br />{$value['username']}</a></li>
						<!--#endforeach#-->
					</ul>
				</article>
			</section>
			<div class="fastpost">
				
			</div>
			<div class="thread_page">
				<!--# if ($operateThread) { #-->
				<!--===================帖子管理选项开始=======================-->
				<div id="J_post_manage_main" class="core_pop_wrap J_post_manage_pop" style="display:none;left:50%;margin-left:-208px;top:10%;">
					<div class="core_pop">
						<div style="width:415px;">
							<div class="pop_top"><a href="#" id="J_post_manage_close" class="pop_close">关闭</a><strong class="mr5">帖子操作</strong>(已选中&nbsp;<span class="red" id="J_post_checked_count">1</span>&nbsp;篇&nbsp;&nbsp;<a href="" class="s4" id="J_post_manage_checkall" data-type="check">Chọn tất</a>)</div>
							<div class="pop_cont">
								<div class="pop_operat_list">
									<ul class="cc">
										<!--# if ($operateThread['topped']) { #--><li><a href="{@url:bbs/manage/topped}">置顶</a></li><!--# } #-->
										<!--# if ($operateThread['digest']) { #--><li><a href="{@url:bbs/manage/digest}">Chọn lọc</a></li><!--# } #-->
										<!--# if ($operateThread['highlight']) { #--><li><a href="{@url:bbs/manage/highlight}">加亮</a></li><!--# } #-->
										<!--# if ($operateThread['up']) { #--><li><a href="{@url:bbs/manage/up}">提前</a></li><!--# } #-->
										<!--# if ($operateThread['type']) { #--><li><a href="{@url:bbs/manage/type}">分类</a></li><!--# } #-->
										<!-- <li><a href="{@url:bbs/manage/topped}">印戳</a></li>  -->
										<!--# if ($operateThread['move']) { #--><li><a href="{@url:bbs/manage/move}">移动</a></li><!--# } #-->
										<!--# if ($operateThread['copy']) { #--><li><a href="{@url:bbs/manage/copy}">复制</a></li><!--# } #-->
										<!--# if ($operateThread['unite']) { #--><li><a href="{@url:bbs/manage/unite}">合并</a></li><!--# } #-->
										<!--# if ($operateThread['lock']) { #--><li><a href="{@url:bbs/manage/lock}">锁定</a></li><!--# } #-->
										<!--# if ($operateThread['down']) { #--><li><a href="{@url:bbs/manage/down}">压帖</a></li><!--# } #-->
										<!--# if ($operateThread['delete']) { #--><li><a href="{@url:bbs/manage/delete}">Xóa</a></li><!--# } #-->
									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!--===================帖子管理选项结束=======================-->
				<!--# } #-->
			</div>
		</div>
	</div>
<template source='TPL:common.footer' load='true' />
</div>
<script>
Wind.use('jquery', 'global', 'dialog', 'draggable', function(){
	Wind.js(GV.JS_ROOT +'pages/bbs/threadForumManage.js?v=' + GV.JS_VERSION);
});
</script>
<pw-end/>
</body>
</html>